﻿using _15Net8AspNetCore_ORM.OrderRespository;
using SqlSugar;

namespace _15Net8AspNetCore_ORM.Extension
{
    public static class ServiceCollectionExtension
    {
        public static void AddOrderRespository(this IServiceCollection services, Action<OrderReposotoryOptions> options, 
            ConfigurationManager configuration)
        {
            OrderReposotoryOptions orderReposotoryOptions = new OrderReposotoryOptions();
            orderReposotoryOptions.Services = services;
            orderReposotoryOptions.Configuration = configuration;
            options.Invoke(orderReposotoryOptions);
        }
    }
}
